<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		
		<div id="app">
			
			{{message}}
			<hr>
			翻转显示: <br>
			{{message.split("").reverse().join("")}}
			
			<hr>
			{{fanzhuanmessage}}
			
		</div>
		 
	</body>
	
	<script>
		
		var vue = new Vue({
			el:"#app",
			data:{
				message:"abcdef"
			},
			computed:{
				//属性名:计算方法处理属性
				fanzhuanmessage:function(){
					
					return this.message.split("").reverse().join("");
				}
			}
		});
		
	</script>
</html>
